<?php echo CHtml::beginForm(array('subcert/create'),'post',array('id'=>'form_permit')); ?>
    <p>
        Fields with <span class="required">*</span> are required.
    </p>
    <div id="form_permit_contents" class='yiiForm' style="width:500px;">
    <?php echo $this->renderPartial('/subcert/_form', array('model'=>$model),true ); ?>
    </div>
<?php echo CHtml::endForm(); ?>